<div class="user_block">
	<div class="commentList">
		<?php $this->renderPartial('_childCommentList',array(
			'comments' => $comments,
			'countComments' => $countComments,
			'parent_id' => $parent_id	
		)); ?>
	</div>	
	
	<?php if( ($_GET['id'] == Yii::app()->user->id) || ($wall_comments == 0 && $isFriend) ) : ?>
		<div class="u_buzz">
			<form action="<?php echo Yii::app()->createAbsoluteUrl('profile/insertcomment', array('id'=>$_GET['id'], 'parent_id'=>$parent_id)); ?>" id="buzz_message" class="new_comment_form">
				<div class="flds_border">
					<div class="flds_border_inside">
						<textarea name="text" class="new_comment_text new_child_comment_text"></textarea>
						<input type="hidden" name="parent_id" class="new_comment_parent_id" value="<?php echo $parent_id; ?>" />
					</div>
				</div>
				<div class="attachment"></div>
				<div class="buzz_action hidden">
					<div class="buzz_btn btn">
						<input type="button" value="Написать" class="new_comment_button" />
					</div>
					<div class="buzz_adds">
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php echo Yii::app()->createAbsoluteUrl('profile/getvideosforcomment', array('id'=>$_GET['id'])); ?>">
							<div class="buzz_adds_item_icon i4"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить видеоролик</div></div>
						</div>
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php echo Yii::app()->createAbsoluteUrl('profile/getmusicsforcomment', array('id'=>$_GET['id'])); ?>">
							<div class="buzz_adds_item_icon i5"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить аудиозапись</div></div>
						</div>
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php echo Yii::app()->createAbsoluteUrl('profile/getimagesforcomment', array('id'=>$_GET['id'])); ?>">
							<div class="buzz_adds_item_icon i6"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить изображение</div></div>
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</form>
		</div>
	<?php endif;?>
</div>